import request from '@/utils/request'

// 查询心情宠物关联列表
export function listMoodpet(query) {
  return request({
    url: '/digital/moodpet/list',
    method: 'get',
    params: query
  })
}

// 查询心情宠物关联详细
export function getMoodpet(id) {
  return request({
    url: '/digital/moodpet/' + id,
    method: 'get'
  })
}

// 新增心情宠物关联
export function addMoodpet(data) {
  return request({
    url: '/digital/moodpet',
    method: 'post',
    data: data
  })
}

// 修改心情宠物关联
export function updateMoodpet(data) {
  return request({
    url: '/digital/moodpet',
    method: 'put',
    data: data
  })
}

// 删除心情宠物关联
export function delMoodpet(id) {
  return request({
    url: '/digital/moodpet/' + id,
    method: 'delete'
  })
}

// 导出心情宠物关联
export function exportMoodpet(query) {
  return request({
    url: '/digital/moodpet/export',
    method: 'get',
    params: query
  })
}